<template>
  <div class="detail-info-panel">
    <div class="title">
      <span style="color: var(--theme-color)">
        {{ highNowPrice | priceFilter }}
      </span>
      <i class="iconfont icon-shoucang1"></i>
    </div>
    <div>
      <div class="description">{{ desc }}</div>
      <div>
        <van-tag style="margin-left: 5px" color="var(--theme-color)" plain>
          免税
        </van-tag>
        <van-tag style="margin-left: 5px" color="var(--theme-color)" plain>
          包邮
        </van-tag>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    highNowPrice: String,
    desc: String
  },
  filters: {
    priceFilter: (price) => '￥' + price
  }
}
</script>

<style lang="less" scoped>
.detail-info-panel {
  background: white;
  padding: 10px 15px;
  border-radius: 10px;
  .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
  }
  .description {
    font-size: 12px;
    line-height: 25px;
  }
}
</style>
